package br.elsa.survey.view.contexts.listeners;

import javax.enterprise.event.Observes;
import javax.enterprise.inject.spi.AfterBeanDiscovery;
import javax.enterprise.inject.spi.BeanManager;
import javax.enterprise.inject.spi.Extension;

import br.elsa.survey.view.contexts.ViewContext;

/**
 * Class responsible to setup all custom context
 * 
 * @author diego
 * @since 19/11/2010
 */
public class CustomContextSetup implements Extension {

	public void setup(@Observes AfterBeanDiscovery event, BeanManager manager) {
        event.addContext(new ViewContext());
    }
}
